<?php
/**
 * Base of _smuoiDbRow, _smuoiPackage and dataProxy
 * 
 * @package Smernel
 */
	class _smuoiDbObj{
	
		private $_domain;
		
		/**
		* domain id this object belongs to
		* @returns string
		*/
		function dom_id(){
			return $this->db()->DOM;
		}
		
		/**
		* bool belongs to domain that called smuoi
		* @returns bool
		*/
		function is_local(){
			return (DOM_ID == $this->dom_id());
		}
		
		/**
		* domain this object belongs to
		* @returns Domain
		*/
		function domain(){
			if(is_null($this->_domain)) $this->_domain = Domain($this->dom_id());
			return $this->_domain;
		}
	}


